package com.ruoyi.project.jiaqin.newsfollow.domain;

import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import com.ruoyi.project.jiaqin.news.domain.News;
import com.ruoyi.project.jiaqin.newsimg.domain.NewsImg;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;
import java.util.List;

/**
 * 新闻关注对象 news_follow
 * 
 * @author LCL
 * @date 2021-10-22
 */
public class NewsFollow extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private String id;

    /** 用户ID */
    @Excel(name = "用户ID")
    private String memberId;

    /** 新闻D */
    @Excel(name = "新闻D")
    private String newsId;

    /** 创建时间 */
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date created;

    private News news;
    private List<NewsImg> newsImg;

    public List<NewsImg> getNewsImg() {
        return newsImg;
    }
    public void setNewsImg(List<NewsImg> newsImg) {
        this.newsImg = newsImg;
    }

    public News getNews() {
        return news;
    }
    public void setNews(News news) {
        this.news = news;
    }

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setMemberId(String memberId) 
    {
        this.memberId = memberId;
    }

    public String getMemberId() 
    {
        return memberId;
    }
    public void setNewsId(String newsId) 
    {
        this.newsId = newsId;
    }

    public String getNewsId() 
    {
        return newsId;
    }
    public void setCreated(Date created) 
    {
        this.created = created;
    }

    public Date getCreated() 
    {
        return created;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("memberId", getMemberId())
            .append("newsId", getNewsId())
            .append("created", getCreated())
            .toString();
    }
}
